<?php

namespace app\controllers;

use Phalcon\Mvc\Controller;

class PublicController extends Controller
{
    public function errorAction($errstr = '')
    {
        if(empty($errstr)) {
            $errstr = $this->request->get('errorstr');
        }
        $this->view->setVar('message', $errstr);
        $this->view->render('public', 'error');
    }
}